#ifndef MEDIAMANAGEMENT_H
#define MEDIAMANAGEMENT_H

#include <QWidget>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QPushButton>
#include <QTabWidget>
#include <ImageWidget.h>
#include <VideoWidget.h>

class MediaManagement : public QWidget
{
    Q_OBJECT
public:
    explicit MediaManagement(QWidget *parent = nullptr);

protected:
    void resizeEvent(QResizeEvent* event) override;
private:
    void initUI();
private slots:
    void onSwitchPage(int nID, bool b);
    void hideEvent(QHideEvent *event);
private:
    QTabWidget* m_tabWidget;
    QButtonGroup* m_pButtonGroup = nullptr;
    ImageWidget* m_imageWidget = nullptr;
    VideoWidget* m_videoWidget = nullptr;
    TouchButton *m_pImageBtn = nullptr;
    TouchButton *m_pVideoBtn = nullptr;

};

#endif // MEDIAMANAGEMENT_H
